.top-nav-wrapper{
    background-color: #333333;
}

.top-nav-wrapper a{
    color: #b0b0b0;
    font-size: 12px;
    display: block;
}

.top-nav-wrapper a:hover{
    color: #fff;
}

.top-nav{
    margin: 0 auto;
    height: 39px;
    /* 因为行高可以继承 所以为外面的父元素设置行高的话里面的li也会拥有相同的行高
    又因为行高和父元素的高度一致 所以文字会通过行高把li撑的和父元素一样高
    如果不设置行高的话，因为这里浮动了 所以li的宽高都会由内部文字的宽高撑起
    */
    line-height: 39px;
}

.top-nav .line{
    width: 1px;
    height: 10px;
    background-color: #40423a;
    margin: 14px 9px;
}

.top-nav .mi-items,.mi-items li,.user li{
    float: left;
}

.shopping-cart{
    width: 121px;
    height: 39px;
    background-color: #424242;
    color: #b0b0b0;
    font-size: 12px;
    margin-left: 27px;
    text-align: center;
    position: relative;
}

.shopping-cart:hover a{
    color: #Ff6700;
    background-color: #fff;
}

.shopping-cart:hover .cart-info{
    height: 100px;

}

.shopping-cart,.user{
    float: right;
}

.shopping-cart a{
    display: block;
}

.shopping-cart .cart-info{
    width: 318px;
    height: 0;
    background-color:#fff;
    box-shadow: 0 0 10px rgba(218, 213, 213, 0.5);
    position: absolute;
    top:39px;
    left: 0;
    left:-197px; 
    transition: height 0.3s;
    
}

.top-nav .download{
    width: 125px;
    /* 这里只把高度设置为0没用 内部的子元素还是会溢出来
    要配合overflow:hidden */
    height: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow:0 0 10px rgba(218, 213, 213, 0.5);
    transition: height 0.3s;
    position: absolute;
    left: -36px;
    top:41px;
    
   
}

.top-nav .download img{
    width: 90px;
    height: 88px;
    /* 只有块元素才能使用这种方法水平居中 */
    display: block;
    margin: 22px auto;
}

.top-nav .download span{
    display: block;
    font-size: 14px;
    color: #000;
    text-align: center;
    margin-top: -20px;
}

.qrcode{
    position: relative;
}

.top-nav .qrcode:hover .download{
    height: 150px;
}

.top-nav .qrcode:hover::before{
    display: block;
}

.qrcode::before{
    content: '';
    display: none;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    /* 要把上框线置为none 不然会顶起来 */
    border-top: none;
    border-bottom-color: #fff;
    position: absolute;
    top:31px;
    left:13px; 
}

.mid-nav{
    margin: 0 auto;
    height: 100px;
}

.mid-nav .logo{
    width: 55px;
    height: 55px;
    margin-top: 23px;
    position: relative;
    overflow: hidden;
    float: left;
}

.mid-nav .logo .mi-logo{
    height: 55px;
    width: 55px;
    display: block;
    background-color: #Ff6700;
    margin-top: 23px;
    position: relative;
    text-indent: -999px;
    float: left;
}

.mid-nav .logo a{
    left: 0;
    display: block;
    width: 55px;
    height: 55px;
    background-position: center center;
    transition: left .3s;
  
}

.mid-nav .logo .mi-logo{
    background-image: url(../img/mi-logo.png);
    position: absolute;
}

.mid-nav .logo .mi-home{
   background-image: url(../img/mi-home.png);
   position: absolute;
   left: -55px;
}

.mid-nav .logo:hover .mi-logo{
   left: 55px;
}

.mid-nav .logo:hover .mi-home{
    left: 0;
}

.mid-nav .product,.mid-nav .product li{
    float: left;
}

.mid-nav .product{
    width: 773px;
    height: 100px;
    line-height: 100px;
    margin-left: 36px;
    padding-left: 29px;
}

.mid-nav .product li{
    margin-right: 22px;
    font-size: 16px;
    
}

.mid-nav .product li a{
    display: block;
    color: #333;
}

.mid-nav .product li a:hover{
    color: #Ff6700;
}

.mid-nav .product li:first-child{
    visibility: hidden;
}

.mid-nav .search-area{
    margin-top: 38px;
    width: 290px;
    height: 49px;
    float: right;
    margin-top: 26px;
}

.mid-nav .search-area .text{
    width: 243px;
    height: 49px;
}

.mid-nav .search-area button{
    width: 54px;
    height: 50px;
}





